home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-12-16 | 3.1 KB | 115 lines | [TEXT/MPS ] |
- //========================================================================================
- // File: Dialog.fr
- // Release Version: $ ODF 3 $
- //
- // Contains: Resources defining the ODFDraw part's Round Corner Dialog
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //========================================================================================
-
- #ifndef FWRESFIL_K
- #include "FWResFil.k"
- #endif
-
- #ifndef FWVIEWS_FR
- #include "FWViews.fr"
- #endif
-
- #ifndef FWNOTDEF_H
- #include "FWNotDef.h"
- #endif
-
- #ifndef DEFINES_K
- #include "Defines.k"
- #endif
-
- //----------------------------------------------------------------------------
- // Strings for clock settings
- //----------------------------------------------------------------------------
- resource FW_kMULTISTRING (kRoundCornersStrings)
- {
- kOffsetErrorString, "Offset must be between -23 and 23";
- kRoundCornersTitleString, "Round Corners";
- }
-
- //========================================================================================
- // resource RFormFrame(kRoundCornersDialog)
- //========================================================================================
- // See constants in "FWViews.k", macros & resource types in "FWViews.fr"
-
- resource FW_RFrameLayout(kRoundCornersDialog)
- {
- {FW_FIX(312),FW_FIX(96)}, // Layout Size - HV
-
- { // Start list of frame's subviews
- FW_RButton
- (
- kDrawOKButtonID, // view id
- FW_BOUNDS(220, 12, 288, 40),
- FW_kFixedBounds, // binding
- FW_kDefaultButtonMsg, // "OK" message
- 0, // receiver = dialogFrame by default
- 0, // control value
- FW_kDefaultPushButton, // button kind (with outline)
- FW_SYSTEM_FONT,
- "OK"
- ),
- FW_RButton
- (
- kCancelButtonID, // view id
- FW_BOUNDS(224, 50, 284, 70),
- FW_kFixedBounds, // binding
- FW_kCancelButtonMsg, // "Cancel" message
- 0, // receiver = dialogFrame by default
- 0, // control value
- FW_kPushButton, // button kind (no outline)
- FW_SYSTEM_FONT,
- "Cancel"
- ),
- FW_RButton
- (
- kRoundEndsID, // view id
- FW_BOUNDS(24, 16, 136, 32),
- FW_kFixedBounds, // binding
- kRoundEndsPressedMsg, // control message
- FW_kFrameReceiver, // control receiver
- 0, // control value
- FW_kRadioButton, // button kind
- FW_SYSTEM_FONT,
- "Round Ends"
- ),
- FW_RButton
- (
- kRadiusID, // view id
- FW_BOUNDS(24, 40, 136, 56),
- FW_kFixedBounds, // binding
- kRadiusPressedMsg, // control message
- FW_kFrameReceiver, // control receiver
- 0, // control value
- FW_kRadioButton, // button kind
- FW_SYSTEM_FONT,
- "Radius"
- ),
- FW_RStaticText
- (
- 0, // view id
- FW_BOUNDS(144, 66, 204, 82), // LTRB
- FW_kFixedBounds, // binding
- FW_SYSTEM_FONT,
- FW_RGB_WHITE,
- "Points"
- ),
- FW_REditView // edit view to enter string
- (
- kPointsID, // view id
- FW_BOUNDS(64, 64, 136, 84),
- FW_kFixedBounds, // binding
- 4, // max chars
- 9, // attributes
- FW_SYSTEM_FONT,
- "0" // initial text
- )
- }, // End list of frame's subviews
- { } // no scroller
- };
-